﻿#region Using declarations
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    partial class Strategy
    {
        ///Returns a number rounded to nearest precision.
        ///Syntax: Round(Num,Precision)
        ///Num: any value or expression
        ///Precision: the number of decimal places to keep
        public double Round(double num, int precision)
        {
            return System.Math.Round(num, precision);
        }

    }
}
